Hệ thống quản lý phòng khám trực tuyến bằng PHP

1 <?php
2 define(
'PREPEND_PATH','../');
3 include(
"../defaultLang.php"); //1
4 include(
"../language.php"); //2
5 include(
"../lib.php"); //3
6 //
this is the core file of the appGini
7 include_once(
"../header.php");
8 if
(isset($_REQUEST['dvprint_x']))
9     
return;
10 $word = $_REQUEST[
'search']; // 3shan 2t2d in intger bs acept
11 $patients_table = get_sql_from(
'patients');
12 $result = sql(
"SELECT DISTINCT * FROM patients RIGHT OUTER JOIN events ON patients.id = events.name_patient
13 WHERE events.prescription LIKE '%"
. $word . "%' ", $e0);
14 ?>
15
16 <div
class="input-group">
17     <span
class="input-group-btn">
18         <a href=
"reports.php" class="btn btn-info hidden-print btn btn-secondary" role="button">Back to Reports</a>
19     </span>
20     <button
class="btn btn-primary hidden-print" type="button" id="sendToPrinter" onclick="window.print();"><i class="glyphicon glyphicon-print"></i> Print</button>
21 </div>
22
23
24
25 <div style=
"height: 90px"></div>
26 <?php
if(db_num_rows($result)){?>
27 <table
class="table table-striped table-bordered">
28     <thead>
29
30     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Name</th>
31     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Age</th>
32     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Home Phone</th>
33     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Work Phone</th>
34     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Image</th>
35     <th
class="text-center"style="color:#0066ff ; font-size: 15px"> Gender</th>
36     <th
class="text-center" style="color:#0066ff ; font-size: 15px">State</th>
37     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Prescription</th>
38 </thead>
39
40 <tbody>
41 <?php
while ($order = db_fetch_assoc($result)) { ?>
42         <tr>
43             <td
class="text-left"><a href="patients_view.php?SelectedID=<?= $order['name_patient'] ?>"><?php echo $order['last_name']; ?> <?php echo " , " . $order['first_name']; ?></a></td>
44
45             <td
class="text-right"><?php echo $order['age']; ?></td>
46             <td
class="text-right"><?php echo $order['home_phone']; ?></td>
47             <td
class="text-right"><?php echo $order['work_phone']; ?></td>
48             <td
class="text-center">
49     <?php
if ($order['image']) {
50         ?>
51                     <img src=
"../images/<?php echo $order['image']; ?>" alt="Smiley face" height="42" width="42">
52                 <?php }
53                 ?>
54             <td
class="text-left"><?php echo $order['gender']; ?></td>
55             <td
class="text-left"><?php echo $order['state']; ?></td>
56             <td
class="text-left"><?php echo $order['prescription']; ?></td>
57
58
59
60         </tr>
61 <?php } ?>
62
63 </tbody>
64
65 </table>
66
67 <?php }
else{
68     echo
'<div class="alert alert-danger">' . $Translation['No records found']. '</div>';
69 }?>
70 <?php
71 include_once(
"../footer.php"); // include the footer file
72 ?>


Gõ tìm kiếm nhanh...